package src.thread;


import src.getdata.GetTopicId;

import java.sql.Connection;

/**
 * @author luxx
 */
public class TopicThread implements Runnable {

    public int main_topic_id;
    public Connection conn;

    public TopicThread(int main_topic_id, Connection conn) {
        this.main_topic_id = main_topic_id;
        this.conn = conn;
    }

    @Override
    public void run() {
        try {
            GetTopicId.getChildTopics(main_topic_id, conn);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
